﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace zhwy.saas.api.Entity.Sys
{
    /// <summary>
    /// 系统权限信息表
    ///</summary>
    [SugarTable("permissions")]
    public class PermissionsEntity: BaseEntity
    {


        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 备  注:权限编码（如bill:read）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "perm_code")]
        public string Perm_code { get; set; } = null!;

        /// <summary>
        /// 备  注:权限名称
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "perm_name")]
        public string Perm_name { get; set; } = null!;

        /// <summary>
        /// 备  注:所属模块（如finance, property）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "module")]
        public string? Module { get; set; }

        /// <summary>
        /// 备  注:权限描述
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "description")]
        public string? Description { get; set; }

        /// <summary>
        /// 备  注:状态（0启用，1禁用，9删除）
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public int Status { get; set; }


    }

}